// import React from 'react';
// import ReactDOM from 'react-dom'; 
// import Admin from './admin';
 import './style/common.less';
// import Router from './router'
// ReactDOM.render(
//         <Router />,
//  document.getElementById('root'));
 import React from 'react';
 import ReactDOM from 'react-dom';
 import Admin from './admin'
 import Router from './router'
 import { Provider } from 'react-redux'
 import reducer from './redux/reducer';
//  import configureStore from './redux/store/configureStore';
 import { createStore,applyMiddleware } from 'redux';
//  import registerServiceWorker from './registerServiceWorker';
 // Redux Store对象，管理所有的Redux状态
//  const store = configureStore();
const store = createStore(reducer);
 ReactDOM.render(
     <Provider store={store}>
         <Router />
     </Provider>,
     document.getElementById('root')
 );
//  // ReactDOM.render(<Router />, document.getElementById('root'));
//  registerServiceWorker();

